<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
<link rel="stylesheet" href="static/js/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="static/js/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="static/js/kindeditor/lang/zh_CN.js"></script>
<script src="static/js/jquery.uploadify.min.js" type="text/javascript"></script>
<style>
	.layui-form-item .layui-input-inline{width:600px;}
	.layui-form-item .layui-input-block{ margin-right:100px;}

.upload_pic{
	width:80%;
	float:left;
	margin-bottom:20px;
}
.upload_pic p{
	width:170px;
	float:left;
	border:1px solid #d7e4ea;
	height:180px;
	margin-right:20px;
	padding:15px;
}
.upload_pic p span{
	width:100%;
	float:left;
}
.upload_pic p span img{
	width:170px;
}

.upload_file{
	border:1px solid #d3dbde;
	cursor:pointer;
	border-radius:5px;
	float:left;
	margin-top:20px;
	margin-left:8px;
	width: 150px !important;
	text-align:center;
	background:rgba(0, 0, 0, 0) url('../resource/img/admin/toolbg.gif') repeat-x scroll 0 0;
}
#voides{
width:300px;
float:left;
margin-top:20px;
}


</style>
<div class="subnav">
    <a href="">首页</a> &gt; <a href="">系统管理</a> &gt; <a href="">关于我们</a>
</div>
<div class="x-nav">
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="?m={$m}&c={$c}" title="返回">
		<i class="layui-icon" style="line-height:30px">&lt;</i>
	</a>
</div>

<div class="x-body">
	<div class="layui-main">
		<form class="layui-form" action="?" method="post">
			<input type="hidden" name="m" value="{$m}" />
			<input type="hidden" name="c" value="{$c}" />
			<input type="hidden" name="a" value="{$a}" />
			<input type="hidden" name="cid" value="9" />
			<input type="hidden" name="id" value="{$id}" />
			<div class="layui-form-item">
				<label class="layui-form-label">文章分类：</label>
				<div class="layui-input-inline">
					<input type="text" name="title" disabled value="关于我们" autocomplete="off" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>			
			<div class="layui-form-item">
				<label class="layui-form-label">标题：</label>
				<div class="layui-input-inline"><input type="text" name="title" required="true" value="{$arr['title']}" placeholder="请输入文章标题" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">内容：</label>
				<div class="layui-input-inline">
					<textarea name="content" style="width:800px;height:500px;" >{$arr[content]}</textarea>
				</div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block" style="margin-left:150px;">
					<a class="layui-btn" href='?m={$m}&c={$c}'>返回</a>
					<button style="margin-left:20px;" class="layui-btn" type="submit">确定</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
    var editor;
    KindEditor.ready(function(K) {
    	editor = K.create('textarea[name="content"]', {
    		allowFileManager : true
    	});    	
    }); 
</script>
{template index/footer}